home *** CD-ROM | disk | FTP | other *** search
/ Champak 120 / Vol 120.iso / games / anacroz.swf / scripts / frame_18 / PlaceObject2_1834_117 / CLIPACTIONRECORD on(press).as
Text File  |  2010-11-09  |  669b  |  27 lines

  1. on(press){
  2.    var i = 1;
  3.    _root.fx.attachSound("select");
  4.    _root.fx.start();
  5.    _root.edClasse2 = _root.sd_valores[MAG][CLASSE];
  6.    _root.edPV2 = _root.sd_valores[MAG][PV];
  7.    _root.edPM2 = _root.sd_valores[MAG][PM];
  8.    _root.edATQ2 = _root.sd_valores[MAG][ATQ];
  9.    _root.edDEF2 = _root.sd_valores[MAG][DEF];
  10.    _root.edAGL2 = _root.sd_valores[MAG][AGL];
  11.    _root.edINT2 = _root.sd_valores[MAG][INT];
  12.    _root.edMRL2 = _root.sd_valores[MAG][MRL];
  13.    _root.rc_sel = 4;
  14.    gotoAndStop(2);
  15.    while(i < 7)
  16.    {
  17.       if(i != MAG + 1)
  18.       {
  19.          _root["rc_" + i++].gotoAndStop(1);
  20.       }
  21.       else
  22.       {
  23.          i++;
  24.       }
  25.    }
  26. }
  27.